package cc.facesign.acl.service.impl;

import cc.facesign.acl.bean.vo.client.DeptVo;
import cc.facesign.acl.client.DeptClient;
import cc.facesign.acl.service.DeptService;
import cc.facesign.common.utils.bean.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptClient deptClient;

    @Override
    public List<DeptVo> getInfoBatch(List<String> ids) {
        R r = deptClient.getInfoBatch(ids);
        List<DeptVo> o = (List<DeptVo>) r.getData().get("data");
        return o;
    }
}
